package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

//用户表
@TableName("t_user")
public class UserBean {
    /**用户Id*/
    @TableId(value = "pk_userId", type = IdType.AUTO)
    private Integer id;
    /**用户名*/
    @TableField("u_name")
    private String name;
    /**密码，默认为123*/
    @TableField("u_pwd")
    private String pwd = "123456";
    /**真实姓名*/
    @TableField("u_realName")
    private String realName;
    /**等级*/
    @TableField("u_level")
    private String level;

    public UserBean() {
    }

    public UserBean(String name, String realName, String level) {
        this.name = name;
        this.realName = realName;
        this.level = level;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", realName='" + realName + '\'' +
                ", level='" + level + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }
}
